﻿using STF.Blog.Dtos;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace STF.Blog.IService
{
    /// <summary>
    /// 博客类别所属比表
    /// </summary>
    public interface IBlogCateGoryService
    {
        public Task<int> AddBlogCateGoryAsync(int bid, string cid);
        public Task<int> UpdateBlogCateGoryAsync(int id, int bid, string cid);
        public Task<int> PutTrashAsync(int id);
        public Task<int> RestoreAsync(int id);
        public Task<int> DeleteBlogCateGoryAsync(int id);
        public Task<List<BlogCateGoryDto>> GetAllBlogCateGoryAsync(int deleteId = 1);
        public Task<List<BlogCateGoryDto>> GetParentIdOne(int id,int deleteId = 1);
        public Task<List<BlogCateGoryDto>> GetParentIdTwo(int cid, int deleteId = 1);
        public Task<BlogCateGoryDto> GetByIdAsync(int id);
    }
}
